//设置对应的ts类型
export interface responesData {
  code: number;
  message: string;
  ok: boolean;
}
//设置data数据类型
export interface resData {
  id: number | string;
  name: string;
  category1Id?: number | string;
  category2Id?: number | string;
}
//定义一个接口继承responesData的接口

export interface resDataList extends responesData {
  data: resData[];
}

//定义获取数据的接口类型
export interface attrValue {
  id?: number;
  valueName: string;
  attrId?: number;
  flag?: boolean;
}
export type attrValueList = attrValue[];
export interface Attr {
  id?: number;
  attrValueList: attrValueList;
  attrName: string;
  categoryId: number | string;
  categoryLevel: number;
}
//存储每一个对象的数组类型
export type AttrList = Attr[];
//属性接口返回的数据ts类型
export interface AttrResponesData extends responesData {
  data: Attr[];
}
